import request from '@/utils/request'

export function getFrontTeachers() {
    return request({
        url: `/ucenter/front/teacher/index`,
        method: 'get'
    })
}

export function getById(id) {
    return request({
        url: `ucenter/teacher/getTeacherById/${id}`,
        method: 'get',
    })
}

export function pageTeacher(teacher, current, limit) {
    return request({
        url: `ucenter/teacher/pageTeacher/${current}/${limit}`,
        method: 'post',
        data: teacher
    })
}